package com.ruoyi.merchant.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.merchant.mapper.MerchantPrintersMapper;
import com.ruoyi.merchant.domain.MerchantPrinters;
import com.ruoyi.merchant.service.IMerchantPrintersService;

/**
 * 商家打印机信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-23
 */
@Service
public class MerchantPrintersServiceImpl implements IMerchantPrintersService 
{
    @Autowired
    private MerchantPrintersMapper merchantPrintersMapper;

    /**
     * 查询商家打印机信息
     * 
     * @param printerId 商家打印机信息主键
     * @return 商家打印机信息
     */
    @Override
    public MerchantPrinters selectMerchantPrintersByPrinterId(String printerId)
    {
        return merchantPrintersMapper.selectMerchantPrintersByPrinterId(printerId);
    }

    /**
     * 查询商家打印机信息列表
     * 
     * @param merchantPrinters 商家打印机信息
     * @return 商家打印机信息
     */
    @Override
    public List<MerchantPrinters> selectMerchantPrintersList(MerchantPrinters merchantPrinters)
    {
        return merchantPrintersMapper.selectMerchantPrintersList(merchantPrinters);
    }

    /**
     * 新增商家打印机信息
     * 
     * @param merchantPrinters 商家打印机信息
     * @return 结果
     */
    @Override
    public int insertMerchantPrinters(MerchantPrinters merchantPrinters)
    {
        return merchantPrintersMapper.insertMerchantPrinters(merchantPrinters);
    }

    /**
     * 修改商家打印机信息
     * 
     * @param merchantPrinters 商家打印机信息
     * @return 结果
     */
    @Override
    public int updateMerchantPrinters(MerchantPrinters merchantPrinters)
    {
        return merchantPrintersMapper.updateMerchantPrinters(merchantPrinters);
    }

    /**
     * 批量删除商家打印机信息
     * 
     * @param printerIds 需要删除的商家打印机信息主键
     * @return 结果
     */
    @Override
    public int deleteMerchantPrintersByPrinterIds(String[] printerIds)
    {
        return merchantPrintersMapper.deleteMerchantPrintersByPrinterIds(printerIds);
    }

    /**
     * 删除商家打印机信息信息
     * 
     * @param printerId 商家打印机信息主键
     * @return 结果
     */
    @Override
    public int deleteMerchantPrintersByPrinterId(String printerId)
    {
        return merchantPrintersMapper.deleteMerchantPrintersByPrinterId(printerId);
    }
}
